﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using BlueLotus7.DBDeploymentTool.Properties;

namespace BlueLotus7.DBDeploymentTool
{
    class Program
    {
        static void Main(string[] args)
        {
            SqlExecutor executor = new SqlExecutor(Settings.Default.LoginName, Settings.Default.LoginPassword, Settings.Default.Server, Settings.Default.DatabaseName, Settings.Default.ScriptContainerPath);

            Console.WriteLine("Initialized. Ready to execute scripts at: " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            executor.Execute();
            Console.WriteLine("End at: " + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            Console.ReadKey();
        }
    }
}
